<?php
/**
 * This file is part of webman.
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the MIT-LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @author    walkor<walkor@workerman.net>
 * @copyright walkor<walkor@workerman.net>
 * @link      http://www.workerman.net/
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 */

namespace support;

/**
 * Class Request
 * @package support
 */
class Request extends \Webman\Http\Request
{

//    // 当前用户id
//    public $currentUserId = 12;
//
//    // 租户id
//    public $tenantId = 0;
    /**
     * @var mixed|string|null
     */
    private $xUserInfo;
    /**
     * @var mixed|null
     */
    private $currentUserId;
    /**
     * @var mixed|null
     */
    private $tenantId;

    /**
     * @var
     */
    private $saasUserId;

    /**
     * @return mixed|string|null
     */
    public function getXUserInfo(): ?string
    {
        return $this->xUserInfo;
    }

    /**
     * @param mixed|string|null $xUserInfo
     */
    public function setXUserInfo(?string $xUserInfo): void
    {
        $this->xUserInfo = $xUserInfo;
    }

    /**
     * @return mixed|null
     */
    public function getCurrentUserId()
    {
        return $this->currentUserId;
    }

    /**
     * @param mixed|null $currentUserId
     */
    public function setCurrentUserId($currentUserId): void
    {
        $this->currentUserId = $currentUserId;
    }

    /**
     * @return mixed|null
     */
    public function getTenantId()
    {
        return $this->tenantId;
    }

    /**
     * @param mixed|null $tenantId
     */
    public function setTenantId($tenantId): void
    {
        $this->tenantId = $tenantId;
    }

    /**
     * @return mixed
     */
    public function getSaasUserId()
    {
        return $this->saasUserId;
    }

    /**
     * @param $saasUserId
     * @return void
     */
    public function setSaasUserId($saasUserId)
    {
        $this->saasUserId = $saasUserId;
    }
}
